<?php /* Smarty version Smarty-3.0.7, created on 2015-01-23 14:35:06
         compiled from "E:/L-Project/other/0002/application/1/ms/view\oui/news/self/form.html" */ ?>
<?php /*%%SmartyHeaderCode:2789654c1eb9a3de883-66264482%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '771d61d53c9b940ebbf2fd0e2ead2f498c08d887' => 
    array (
      0 => 'E:/L-Project/other/0002/application/1/ms/view\\oui/news/self/form.html',
      1 => 1421983702,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2789654c1eb9a3de883-66264482',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'E:\L-Project\other\0002\tryPHP\library\smarty\plugins\modifier.date_format.php';
?><?php $_template = new Smarty_Internal_Template("oui/public/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("oui/public/navibar.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("oui/public/sidebar.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("oui/public/breadcrumb-2.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<div class="well">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#main" data-toggle="tab">基本信息</a></li>
        <li class=""><a href="#option1" data-toggle="tab">常规选项</a></li>
        <li class=""><a href="#option2" data-toggle="tab">高级选项</a></li>
    </ul>
    <form method="post" class="form" action=<?php echo $_smarty_tpl->getVariable('data')->value['meta']['action'];?>
>
    <div id="myTabContent" class="tab-content">
        <div id="main" class="tab-pane active in">
            <label>标题</label>
            <input type="text" class="input-xlarge-1" id="title" name="title" autofocus="true" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['title'];?>
>
            <label>正文</label>
            <textarea class="input-xlarge hidden" id="content" name="content" rows="10" xheditor="true" height="390" upImgUrl=<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperLink(':common_xheditor::upload');?>
><?php echo $_smarty_tpl->getVariable('data')->value['base']['content'];?>
</textarea>
        </div>
        <div id="option1" class="tab-pane fade">
            <label>作者</label>
            <input type="text" class="input-xlarge-3" id="author" name="author" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['author'];?>
>
            <label>来源</label>
            <input type="text" class="input-xlarge-3" id="source" name="source" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['source'];?>
>
            <label>标签</label>
            <input type="text" class="input-xlarge-1" id="label" name="label" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['label'];?>
>
            <label>摘要</label>
            <textarea class="textarea-xlarge-2" id="summary" name="summary"><?php echo $_smarty_tpl->getVariable('data')->value['base']['summary'];?>
</textarea>
        </div>
        <div id="option2" class="tab-pane fade">
            <label>封面<span id="cover1-error-paniel" class="label label-important hidden"></span></label>
            <input type="text" id="cover" name="cover" x-upload="true" x-data="cover1-error-paniel|news" x-upload-ui=<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperLink(':common_upload');?>
 value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['cover'];?>
>
            <!--优雅的分隔线-->
            <label>日期</label>
            <div class="controls date form_datetime" data-date="1979-09-16T05:25:07Z" data-link-field="datetime">
                <input class="input-xlarge-3" type="text" id="datetime" name="datetime" readonly="readonly" x-date="true" value=<?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('data')->value['base']['datetime'],'%Y-%m-%d');?>
>
                <span class="add-on hidden"><i class="icon-remove"></i></span>
                <span class="add-on hidden"><i class="icon-th"></i></span>
            </div>
            <!--优雅的分隔线-->
            <label>类别</label>
            <input type="hidden" id="class-value" name="class-value" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['class'];?>
>
            <select class="select-xlarge-2" id="class" name="class">
                <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value['class']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</option>
                    <?php  $_smarty_tpl->tpl_vars['subItem'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['item']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['subItem']->key => $_smarty_tpl->tpl_vars['subItem']->value){
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['subItem']->value['id'];?>
">　　<?php echo $_smarty_tpl->tpl_vars['subItem']->value['name'];?>
</option>
                        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['subItem']->value['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
">　　　　<?php echo $_smarty_tpl->tpl_vars['row']->value['name'];?>
</option>
                        <?php }} ?>
                    <?php }} ?>
                <?php }} ?>
            </select>
            <!--优雅的分隔线-->
            <input type="hidden" id="istop-value" name="istop-value" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['istop'];?>
>
            <label>置顶</label>
            <select class="select-xlarge-2" id="istop" name="istop">
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
            <!--优雅的分隔线-->
            <label>头条</label>
            <select class="select-xlarge-2" id="headline" name="headline">
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
            <!--优雅的分隔线-->
            <label>要闻</label>
            <select class="select-xlarge-2" id="highlights" name="highlights">
                <option value="0">否</option>
                <option value="1">是</option>
            </select>
        </div>
        <div id="default-data" class="hidden">
            <input type="hidden" id="id" name="id" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['id'];?>
>
        </div>
        <div class="btn-toolbar">
            <button type="submit" class="btn btn-primary"><strong>提交</strong></button>
        </div>
    </div>
    </form>
</div>
<!--优雅的分隔线-3-->
<script src=<?php echo @APP_PATH;?>
/view/oui/scripts/library/trigger.upload.js></script>
<!--优雅的分隔线-->
<script src=<?php echo @BUILD_PATH;?>
/public/JEAR/xheditor/xheditor-1.1.14-zh-cn.min.js></script>
<script src=<?php echo @BUILD_PATH;?>
/public/JEAR/xheditor/xheditor.initialization.js></script>
<!--优雅的分隔线-->
<script src=<?php echo @BUILD_PATH;?>
/public/UIR/bootstrap/plugins/datetimepicker/js/bootstrap-datetimepicker.min.js></script>
<script src=<?php echo @BUILD_PATH;?>
/public/UIR/bootstrap/plugins/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js></script>
<link rel="stylesheet" href=<?php echo @BUILD_PATH;?>
/public/UIR/bootstrap/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css>
<script src=<?php echo @APP_PATH;?>
/view/oui/scripts/library/trigger.datetime-picker.js></script>
<!--优雅的分隔线-->
<script src=<?php echo @APP_PATH;?>
/view/oui/scripts/news.form.js></script>
<?php $_template = new Smarty_Internal_Template("oui/public/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>